package com.wx.spring.ioc.rules;

import lombok.Getter;

/**
 * @author wx
 * @Description: Ioc中xml配置的规则
 * @date 2019/1/5 000518:00
 */
@Getter
public enum IocXmlRules implements RulesEnumTemplate {
    /**
     * bean 规则
     */
    BEAN_RULE("bean", "id", "class"),
    /**
     * 扫描规则
     */
    SNAN_RULE("component-scan", "base-package", "null"),
    /**
     * set方法注入的规则
     */
    SET_INJECT("property", "name", "value"),
    /**
     * 构造器注入的规则，使用构造器注入的时候必须指定顺序。
     */
    CONS_INJECT("constructor-arg", "index", "value");
    private String type;
    private String name;
    private String value;
    IocXmlRules(String property, String name, String value) {
        this.type  = property;
        this.name  = name;
        this.value = value;
    }
}
